package com.hsbc.dev.teamo4.sms.sm.dao;

import com.hsbc.dev.teamo4.sms.common.base.IEntityDao;
import com.hsbc.dev.teamo4.sms.sm.po.Department;

import java.util.List;
import java.util.Map;

/**
 * @author:Kevin
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.dao
 * @Description:
 * @Date date: 2018/7/28
 */
public interface IDepartmentDao extends IEntityDao<Department>{

    List<Department> getChildDepartmentListByLevel(String level);

    void batchUpdateLevel(List<Department> departments);

    Map countByNameAndParentId(String parentId, String departmentName, String departmentId);
}
